<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/UI/Page/setup_scr_m0_m4.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_c78dc1806c68fd338fba226975244931.html">UI</a></li><li class="navelem"><a class="el" href="dir_25d44ec6257672254111041d2f097be1.html">Page</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">setup_scr_m0_m4.c</div></div>
</div><!--header-->
<div class="contents">
<a href="setup__scr__m0__m4_8c.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &quot;<a class="code" href="ui_8h.html">ui.h</a>&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;<a class="code" href="ui__event_8h.html">ui_event.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__m0__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="setup__scr__m0__m4_8c.html#a3f8c5e10b9dbf61ec407b6d84a885ab7">   34</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__m0__m4_8c.html#a3f8c5e10b9dbf61ec407b6d84a885ab7">setup_scr_m0_m4</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="comment">// Write codes scr_m0_m4</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a> = lv_obj_create(lv_scr_act(), NULL);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_HOR_RES_MAX, LV_VER_RES_MAX);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    <span class="comment">// Write codes scr_m0_m4_imgbtn_home</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, NULL);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(0, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)),</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    ICON_HB_H);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    ICON_HB_W,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>    ICON_HB_H);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 16].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <span class="comment">// Write codes scr_m0_m4_imgbtn_back</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a> = lv_imgbtn_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, NULL);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    <a class="code hl_define" href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a>(2, 0, ICON_HB_W, <a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, ICON_HB_W, 3)),</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    ICON_HB_H);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    ICON_HB_W,</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    ICON_HB_H);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>, LV_BTN_STATE_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>, LV_BTN_STATE_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>, LV_BTN_STATE_CHECKED_RELEASED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    lv_imgbtn_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>, LV_BTN_STATE_CHECKED_PRESSED, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a> + 17].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="comment">// Write codes scr_m0_m4_sw_video</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">scr_m0_m4_sw_video</a> = lv_switch_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, NULL);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    <span class="comment">// lv_obj_set_pos(ui-&gt;scr_m0_m4_sw_video, 210, 28);</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">scr_m0_m4_sw_video</a>, ICON_HB_W, ICON_HB_H);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    lv_switch_set_anim_time(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">scr_m0_m4_sw_video</a>, 0); <span class="comment">// 动画时长 100</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    lv_switch_off(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">scr_m0_m4_sw_video</a>, LV_ANIM_ON);  <span class="comment">// 默认关闭, 开启动画</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    lv_obj_align(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">scr_m0_m4_sw_video</a>, NULL,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    LV_ALIGN_IN_TOP_MID,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    0, ICON_HB_H); <span class="comment">// 相对父级顶部居中对齐</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    <span class="comment">// Write codes scr_m0_m4_slider_video</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a> = lv_slider_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, NULL);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    <span class="comment">// lv_obj_set_pos(ui-&gt;scr_m0_m4_slider_video, 40, 244);</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, GIF_M0_M4_W, GIF_M0_M4_H / 14);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    lv_slider_set_type(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, LV_SLIDER_TYPE_NORMAL); <span class="comment">// 普通类型</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="comment">//    lv_obj_set_adv_hittest(ui-&gt;scr_m0_m4_slider_video, true);              // 仅拖动有效，禁用滑块点击</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>    lv_slider_set_range(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, 1, 100);               <span class="comment">// 范围1~100</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    lv_slider_set_value(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, 50, LV_ANIM_OFF);      <span class="comment">// 初值 50 , 不用动画效果</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    lv_slider_set_anim_time(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, 0);                <span class="comment">// 设置初值时的动画时长</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    lv_obj_align(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">scr_m0_m4_slider_video</a>, NULL,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    LV_ALIGN_IN_BOTTOM_MID,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>    0, -GIF_M0_M4_H / 10); <span class="comment">// 相对父级底部居中对齐</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>    <span class="comment">// Write codes scr_m0_m4_img_gif</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="comment">// Set Style for scr</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    <a class="code hl_function" href="setup__scr__m0__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(ui);</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    <span class="comment">// Init events for scr</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    <a class="code hl_function" href="ui__event_8c.html#a905108d92ce4fd3bccf05e1aec5c24bd">events_init_scr_m0_m4</a>(ui);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>}</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="setup__scr__m0__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">  101</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__m0__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>{</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    lv_obj_set_style_local_radius(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    lv_obj_set_style_local_border_width(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    lv_obj_set_style_local_outline_width(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    <span class="comment">// 黑色背景</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    lv_obj_set_style_local_bg_color(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>    <span class="comment">// 透明-LV_OPA_TRANSP      不透明-LV_OPA_COVER</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    lv_obj_set_style_local_bg_opa(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">scr_m0_m4</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_COVER);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="comment">// 添加图标样式</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">scr_m0_m4_imgbtn_home</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">scr_m0_m4_imgbtn_back</a>, LV_IMGBTN_PART_MAIN, &amp;<a class="code hl_variable" href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a>);</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    <span class="comment">// 滑动条样式</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="comment">//  static lv_style_t Style_Slider;</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span><span class="comment">//  lv_style_init(&amp;Style_Slider);</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="comment">//  lv_style_set_bg_opa(&amp;Style_Slider, LV_STATE_DEFAULT, LV_OPA_TRANSP);   // 指定背景的不透明度</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span><span class="comment">//  lv_style_set_bg_color(&amp;Style_Slider, LV_STATE_DEFAULT, LV_COLOR_CYAN); // 指定背景色</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span><span class="comment">//  lv_obj_add_style(ui-&gt;scr_m0_m4_slider_video, LV_SLIDER_PART_INDIC, &amp;Style_Slider);</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    <span class="comment">// LV_SLIDER_PART_BG        LV_SLIDER_PART_INDIC</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    <span class="comment">//lv_obj_set_style_local_bg_color(ui-&gt;scr_m0_m4_slider_video, LV_SLIDER_PART_BG, LV_STATE_DEFAULT, LV_COLOR_GREEN);</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>}</div>
<div class="ttc" id="aimage__source_8c_html_aad0609e68f74eb0a9760a3fc0f604794"><div class="ttname"><a href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a></div><div class="ttdeci">img_hash_t Image_Table[IMG_MAX_NUM]</div><div class="ttdoc">图片资源文件映射表</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8c_source.html#l00025">image_source.c:25</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a5766095671f07f4d50bd8a45777ab29a"><div class="ttname"><a href="image__source_8h.html#a5766095671f07f4d50bd8a45777ab29a">ICON_IMG_START</a></div><div class="ttdeci">#define ICON_IMG_START</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00045">image_source.h:45</a></div></div>
<div class="ttc" id="asetup__scr__m0__m4_8c_html_a3f8c5e10b9dbf61ec407b6d84a885ab7"><div class="ttname"><a href="setup__scr__m0__m4_8c.html#a3f8c5e10b9dbf61ec407b6d84a885ab7">setup_scr_m0_m4</a></div><div class="ttdeci">void setup_scr_m0_m4(lv_ui *ui)</div><div class="ttdoc">创建 M0 / M4 芯片具体型号介绍展示页</div><div class="ttdef"><b>Definition:</b> <a href="setup__scr__m0__m4_8c_source.html#l00034">setup_scr_m0_m4.c:34</a></div></div>
<div class="ttc" id="asetup__scr__m0__m4_8c_html_ace6d825503d92b9fa25e9433e6a5e3e1"><div class="ttname"><a href="setup__scr__m0__m4_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a></div><div class="ttdeci">static void setup_style(lv_ui *ui)</div><div class="ttdef"><b>Definition:</b> <a href="setup__scr__m0__m4_8c_source.html#l00101">setup_scr_m0_m4.c:101</a></div></div>
<div class="ttc" id="astructimg__hash__t_html_a15a9da58fa9768c427dbd548764b2009"><div class="ttname"><a href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img_hash_t::img</a></div><div class="ttdeci">lv_img_dsc_t * img</div><div class="ttdoc">图片资源</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00092">image_source.h:92</a></div></div>
<div class="ttc" id="astructlv__ui_html"><div class="ttname"><a href="structlv__ui.html">lv_ui</a></div><div class="ttdoc">UI 布局设计</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00130">ui.h:131</a></div></div>
<div class="ttc" id="astructlv__ui_html_a05fb880d28daa4f661e5bccdc4033f6d"><div class="ttname"><a href="structlv__ui.html#a05fb880d28daa4f661e5bccdc4033f6d">lv_ui::scr_m0_m4_imgbtn_home</a></div><div class="ttdeci">lv_obj_t * scr_m0_m4_imgbtn_home</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00174">ui.h:174</a></div></div>
<div class="ttc" id="astructlv__ui_html_a22fa4be416fd73664d9866482a7302ae"><div class="ttname"><a href="structlv__ui.html#a22fa4be416fd73664d9866482a7302ae">lv_ui::scr_m0_m4</a></div><div class="ttdeci">lv_obj_t * scr_m0_m4</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00172">ui.h:172</a></div></div>
<div class="ttc" id="astructlv__ui_html_a638f73acf52b924225ee46c8ff790c8d"><div class="ttname"><a href="structlv__ui.html#a638f73acf52b924225ee46c8ff790c8d">lv_ui::scr_m0_m4_sw_video</a></div><div class="ttdeci">lv_obj_t * scr_m0_m4_sw_video</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00177">ui.h:177</a></div></div>
<div class="ttc" id="astructlv__ui_html_a643606afd3b8f222e6ab215c415b63a4"><div class="ttname"><a href="structlv__ui.html#a643606afd3b8f222e6ab215c415b63a4">lv_ui::scr_m0_m4_imgbtn_back</a></div><div class="ttdeci">lv_obj_t * scr_m0_m4_imgbtn_back</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00175">ui.h:175</a></div></div>
<div class="ttc" id="astructlv__ui_html_ac1e9f613a742ab0f248504d0cd69464e"><div class="ttname"><a href="structlv__ui.html#ac1e9f613a742ab0f248504d0cd69464e">lv_ui::scr_m0_m4_slider_video</a></div><div class="ttdeci">lv_obj_t * scr_m0_m4_slider_video</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00176">ui.h:176</a></div></div>
<div class="ttc" id="aui_8c_html_ae198236d3c142466346a28ea4222e760"><div class="ttname"><a href="ui_8c.html#ae198236d3c142466346a28ea4222e760">Style_Common_Btn</a></div><div class="ttdeci">lv_style_t Style_Common_Btn</div><div class="ttdoc">按钮图标全局统一样式</div><div class="ttdef"><b>Definition:</b> <a href="ui_8c_source.html#l00032">ui.c:32</a></div></div>
<div class="ttc" id="aui_8h_html"><div class="ttname"><a href="ui_8h.html">ui.h</a></div><div class="ttdoc">UI 页面布局</div></div>
<div class="ttc" id="aui_8h_html_a0f5436e65f0809b6db4215a2fa2ff4cb"><div class="ttname"><a href="ui_8h.html#a0f5436e65f0809b6db4215a2fa2ff4cb">GET_X</a></div><div class="ttdeci">#define GET_X(i, s, w, offset)</div><div class="ttdoc">在[s, s + x]区间 : 按 offset 偏移对齐宽为 w 的 ICON =&gt; 得出对齐第 i 个 ICON 的绝对位置 - x轴</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00084">ui.h:84</a></div></div>
<div class="ttc" id="aui_8h_html_ac0a0ec2ce739f6d59caa4619cdd123f9"><div class="ttname"><a href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a></div><div class="ttdeci">#define GET_OFFSET_X(x, w, n)</div><div class="ttdoc">在[0, x]区间 : 对齐 n 个宽为 w 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - x轴 [0 &lt;- (offset) -&gt; icon_w &lt;- (offset) -&gt; icon_w...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00078">ui.h:78</a></div></div>
<div class="ttc" id="aui__event_8c_html_a905108d92ce4fd3bccf05e1aec5c24bd"><div class="ttname"><a href="ui__event_8c.html#a905108d92ce4fd3bccf05e1aec5c24bd">events_init_scr_m0_m4</a></div><div class="ttdeci">void events_init_scr_m0_m4(lv_ui *ui)</div><div class="ttdoc">M0 / M4 芯片具体型号介绍展示页注册事件回调</div><div class="ttdef"><b>Definition:</b> <a href="ui__event_8c_source.html#l00864">ui_event.c:864</a></div></div>
<div class="ttc" id="aui__event_8h_html"><div class="ttname"><a href="ui__event_8h.html">ui_event.h</a></div><div class="ttdoc">UI 页面事件回调</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
